package com.jack.helloworld.service;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.widget.Toast;

public class MusicService extends Service {
    public MusicService() {
    }

    public class MusicBinderService extends Binder {

        public MusicService getService() {
            return MusicService.this;
        }
    }

    @Override
    public IBinder onBind(Intent intent) {

        return new MusicBinderService();
    }

    public void start() {
        Toast.makeText(this, "start", Toast.LENGTH_SHORT).show();
    }

    public void previous() {
        Toast.makeText(this, "previous", Toast.LENGTH_SHORT).show();
    }

    public void next() {
        Toast.makeText(this, "next", Toast.LENGTH_SHORT).show();
    }

    public void stop() {
        Toast.makeText(this, "stop", Toast.LENGTH_SHORT).show();
    }



}
